/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question3.ocpViolation.service.impl;

import za.ac.cput.pretorius.question3.ocpViolation.model.DeviceManager;
import za.ac.cput.pretorius.question3.ocpViolation.model.USB;
import za.ac.cput.pretorius.question3.ocpViolation.service.MonitorConnectedDeviceService;

/**
 *
 * @author griddy
 */
public class MonitorConnectedDeviceServiceImpl implements MonitorConnectedDeviceService {

    @Override
    public boolean detectDevice(USB device1) {
        DeviceManager mon = new DeviceManager();
        
        return mon.isConnected(device1);
     
    }
    

    
}
